<?php
/**
 * Created by JetBrains PhpStorm.
 * User: Андрей
 * Date: 06.05.12
 * Time: 19:37
 * To change this template use File | Settings | File Templates.
 */
 

    /*
     * Модель комментариев
     */

    class CommentModel
    {
        private $_userId;
        private $_noteId;
        private $_commentId;
        
        private $_text;
        private $_time;
        private $_date;


        public function __construct($userId = null,$noteId = null, $commentId = null,
                                    $text = null,$time = null,$date = null)
        {
            $this->_userId = $userId;
            $this->_noteId = $noteId;
            $this->_commentId = $commentId;
            $this->_text = $text;
            $this->_date = $date;
            $this->_time = $time;
        }

        public function setDate($date)
        {
            $this->_date = $date;
            return $this;
        }

        public function getDate()
        {
            return $this->_date;
        }

        public function setNoteId($noteId)
        {
            $this->_noteId = $noteId;
            return $this;
        }

        public function getNoteId()
        {
            return $this->_noteId;
        }

        public function setText($text)
        {
            $this->_text = $text;
            return $this;
        }

        public function getText()
        {
            return $this->_text;
        }

        public function setTime($time)
        {
            $this->_time = $time;
            return $this;
        }

        public function getTime()
        {
            return $this->_time;
        }

        public function setUserId($userId)
        {
            $this->_userId = $userId;
            return $this;
        }

        public function getUserId()
        {
            return $this->_userId;
        }

       public function setCommentId($commentId)
        {
            $this->_commentId = $commentId;
        }

        public function getCommentId()
        {
            return $this->_commentId;
        }

    }